import request from '@/utils/request'

// 获取班报数据（查看历史班报）
export function getShiftReport(cashierCode, deviceCode, startTime, endTime) {
  return request({
    url: '/pos/shift/getShiftReport',
    method: 'get',
    params: {
      cashierCode: cashierCode,
      deviceCode: deviceCode,
      startTime: startTime,
      endTime: endTime
    }
  })
}

// 获取日报数据（查看历史日报）
export function getDailyReport(cashierCode, deviceCode, reportDate) {
  return request({
    url: '/pos/shift/getDailyReport',
    method: 'get',
    params: {
      cashierCode: cashierCode,
      deviceCode: deviceCode,
      reportDate: reportDate
    }
  })
}
